#!/bin/sh
# find keywords in multi-files and print file names and line numbers which contain the keywords

if [ $# -eq 2 ] 
 then
	echo  find "$2" in multifiles: "$1"
	echo -e "------------------------------------\n"
	find . -name "$1" -exec grep "$2" {} -nH \;
 else 
	echo  find "$1" in all files of current directory
	echo -e "------------------------------------\n"
 	find . -name "*" -exec grep "$1" {} -nH \;
fi

